<html>
<head>

</head>
<body>

<?=form_open_multipart($url) ?>
<table cellpadding="0" cellspacing="0px" id="tableadmin">
<tr>
<th>Id</th>
<th>Person_name</th>
<th>Description</th>
<th>On_date</th>
<th>Type</th>
<th>media_type</th>
<th>Active/Inactive</th>
<th>Edit</th>
<th>Delete</th>
</tr>
<?php foreach ($quary->result() as $row):?>
<tr>
<td><?=$row->id ?></td>
<td><?=$row->person_name ?></td>
<td><?=$row->description ?></td>
<td><?=$row->on_date  ?></td>
<td><?=$row->type ?></td>
<td align='center'><?=$row->media_type ?></td>
<td align='center'>
<? if($row->active==1){
echo anchor('admin/int_update/active/'.$row->active.'/'.$row->id ,'Active'); 
}else{ 
	echo anchor('admin/int_update/active/'.$row->active.'/'.$row->id ,'Inactive'); 
}?></td>
<td><?=anchor('admin/int_update/edit/'.$row->id,'Edit'); ?></td>
<td><?=anchor('admin/int_update/delete/'.$row->id,'Delete',"onclick='return confirm(\"Are you sure want to delete\");'"); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?=form_close(); ?>

</body>
</html>